package com.bigger.arch.app.web.aop;


import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.DeclareParents;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class BiggerExtrableIntroducer {
    //如果Bean设置作用域，并且设置了代理模式，以下注解无效并报错
    //@DeclareParents(value = "com.bigger.arch.app.biz.IDemoXmlBiz", defaultImpl = DefaultExtrable.class)
    @DeclareParents(value = "com.bigger.arch.app.biz..*", defaultImpl = DefaultExtrable.class)
    //以下注解来源于书籍《Spring in Action》、网络，测试失败。"+"表示DemoXmlBiz的所有子类
    //@DeclareParents(value = "com.bigger.arch.service.service.IDemoXmlBiz+", defaultImpl = DefaultExtrable.class)
    public static BiggerExtrable biggerExtrable;
}
